package org.kjtc.balanceService;

import java.util.List;

import org.kjtc.balanceEntity.LineBalance;
import org.kjtc.balanceEntity.StageSummary;
import org.kjtc.balanceEntity.SubBranchCompanyBalance;
import org.kjtc.balanceEntity.SummaryBalance;
import org.kjtc.service.BaseService;
import org.springframework.stereotype.Service;

@Service("balanceService")
public class BalanceService  extends BaseService {

	@SuppressWarnings("unchecked")
	public List<SummaryBalance> getSummaryBalance(SummaryBalance summaryBalance) throws Exception{
		return (List<SummaryBalance>)this.getDaoSupport().findForList("T_Balance.getSummaryBalance",summaryBalance);
	}

	@SuppressWarnings("unchecked")
	public List<SubBranchCompanyBalance> getBranchCompanyBalance(SubBranchCompanyBalance subBranchCompanyBalance) throws Exception{
		return (List<SubBranchCompanyBalance>)this.getDaoSupport().findForList("T_Balance.getSubBranchCompanyBalance",subBranchCompanyBalance);
	}
	
	@SuppressWarnings("unchecked")
	public List<LineBalance> getAllSubBranchCompanyLine(LineBalance lineBalance) throws Exception{
		return (List<LineBalance>)this.getDaoSupport().findForList("T_Balance.getAllSubBranchCompanyLine", lineBalance);
	}

	@SuppressWarnings("unchecked")
	public List<LineBalance> getLineBalance(LineBalance lineBalance) throws Exception{
		return (List<LineBalance>)this.getDaoSupport().findForList("T_Balance.getLineBalance", lineBalance);
	}
	

	@SuppressWarnings("unchecked")
	public List<StageSummary> getStageSummary(StageSummary stageSummary) throws Exception{
		return (List<StageSummary>)this.getDaoSupport().findForList("T_Balance.getStageSummary", stageSummary);
	}
}
